/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ticketmaster.dataobject;

import java.sql.Timestamp;

 /**
 * @author Varadha
 */
public class Event {

    private int eventID;
    private int venueID;
    private String type;
    private String name;
    private String price;
    private String description;
    // modification begin, xiaolong xue
    private Timestamp beginDateTime;
    private Timestamp endDateTime;
    private boolean cancelled = false; //xiaolong, april 8    // modification end, xiaolong xue    private String keywords;
    private String keywords;


    /**
     * @return the eventID
     */
    public int getEventID() {
        return eventID;
    }

    /**
     * @param eventID the eventID to set
     */
    public void setEventID(int eventID) {
        this.eventID = eventID;
    }

    /**
     * @return the venueID
     */
    public int getVenueID() {
        return venueID;
    }

    /**
     * @param venueID the venueID to set
     */
    public void setVenueID(int venueID) {
        this.venueID = venueID;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the date
     */
    public Timestamp getBeginDateTime() {
        return beginDateTime;
    }

    /**
     * @param date the date to set
     */
    public void setBeginDateTime(Timestamp beginDateTime) {
        this.beginDateTime = beginDateTime;
    }

    /**
     * @return the time
     */
    public Timestamp getEndDateTime() {
        return endDateTime;
    }

    /**
     * @param time the time to set
     */
    public void setEndDateTime(Timestamp endDateTime) {
        this.endDateTime = endDateTime;
    }

    //varadha added 7 apr
    @Override
    public String toString()
    {
        if(description.isEmpty())
            return name;
        else
            return name + " - " + description;
    }

    /**
     * @return the cancelled
     */
    public boolean isCancelled() {
        return cancelled;
    }

    /**
     * @param cancelled the cancelled to set
     */
    public void setCancelled(boolean cancelled) {
        this.cancelled = cancelled;
    }

    /**
     * @return the type
     */
    public String getType()
    {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type)
    {
        this.type = type;
    }

    /**
     * @return the price
     */
    public String getPrice()
    {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(String price)
    {
        this.price = price;
    }

    /**
     * @return the keywords
     */
    public String getKeywords()
    {
        return keywords;
    }

    /**
     * @param keywords the keywords to set
     */
    public void setKeywords(String keywords)
    {
        this.keywords = keywords;
    }

}
